#include"List.h"



void test()
{
	LTNode* plist = LTIint();
	LTPushBack(plist,1);
	LTPushBack(plist,2);
	LTPushBack(plist,3);
	LTPushBack(plist,4);
	LTPushBack(plist,5);
	LTPrint(plist);
	LTPushFront(plist, 6);
	LTPushFront(plist, 7);
	LTPushFront(plist, 8);
	LTPushFront(plist, 9);
	LTPushFront(plist, 10);
	LTPrint(plist);


	LTPopBack(plist);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);

	LTPopFront(plist);
	LTPrint(plist);
	LTPopFront(plist);
	LTPrint(plist);

	LTInsert(LTFind(plist, 6), 99);
	LTPrint(plist);
	LTErase(LTFind(plist, 7));

	LTDestory(plist);
	plist = NULL;

}

int main()
{

	test();

	return 0;
}